<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/vue.js"></script>
</head>
<body>
<div id="root">
<child>
    <a>world</a>
</child>
</div>
<script>
    Vue.component("child",{
        template: `<div>
                     <p>hello</p>
                     <slot></slot>
                   </div>`
    })
    var  vm=new Vue({
        el:'#root'
    })







</script>

</body>
</html>